(C) 1996 AROS - The Amiga Replacement OS


NAME
#include <proto/exec.h>
ULONG SetSR()
SYNOPSIS
ULONG newSR
ULONG mask

LOCATION
In SysBase at offset 24
FUNCTION
Read/Modify the CPU status register in an easy way. Only the bits set it the mask parameter will be changed.

The bits in the register mapped to those of the Motorola MC680x0 family of microprocessors.

INPUTS
newSR
The new contents of the status register.
mask
Mask of bits to change.
RESULT
The old contents of the status register or ~0UL if this function is not implemented.

NOTES
This function is of limited use.

EXAMPLE
You can read the status register by calling SetSR(0,0).

BUGS
This function may do nothing on non-mc680x0 systems.

SEE ALSO
INTERNALS
HISTORY
05.08.1997 iaint
Kernel Changes - These are mostly functions which are normally implemented by the kernel, but might not be.